#include "Triangle.h"
Triangle::Triangle(){
	vertices[0].x = 40;
	vertices[0].y =  40;
	vertices[0].z = 0;
	vertices[0].rhw = 0;
	vertices[0].color = D3DCOLOR_XRGB(100, 0 , 100);
	vertices[1].x = 60;
	vertices[1].y =  60;
	vertices[1].z = 100;
	vertices[1].rhw = 0;
	vertices[1].color = D3DCOLOR_XRGB(100, 0 , 100);
	vertices[2].x = 30;
	vertices[2].y =  30;
	vertices[2].z = 20;
	vertices[2].rhw = 0;
	vertices[2].color = D3DCOLOR_XRGB(100, 0 , 100);
}
Triangle::~Triangle(){
	delete[] vertices;
}
void Triangle::Draw(Renderer* renderer){
	renderer->Draw();
}